package com.zysstudy.service.impl;

import com.github.pagehelper.PageHelper;
import com.zysstudy.Dao.RoomDao;
import com.zysstudy.domain.Room;
import com.zysstudy.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author zhaoyoushui
 * @date 2023/9/7 15:07
 */
@Service
public class RoomServiceImpl implements RoomService {

    @Autowired
    private RoomDao roomDao;

    public List<Room> findByAreaId(int areaId) {
        return roomDao.findByAreaId(areaId);
    }

    public Room findById(int id){
        return roomDao.findById(id);
    }
}
